package com.zqq.goods.service

import com.zqq.goods.service.bean.CartGoods
import rx.Observable

/**
 * 购物车 业务 接口
 * wc
 * @author zqq on 2018/8/5.
 */
interface CartService {

    /* 1. 获取购物车列表-*/
    fun getCartList(): Observable<MutableList<CartGoods>?>


    /*  添加商品到购物车 */
    fun addCart(goodsId: Int, goodsDesc: String, goodsIcon: String, goodsPrice: Long,
                goodsCount: Int, goodsSku: String): Observable<Int>

    fun addCart(map: Map<String, Any>): Observable<Int>



    /*     删除购物车商品  */
    fun deleteCartList(list: List<Int>): Observable<Boolean>


    /*     购物车结算 */
    fun submitCart(list: MutableList<CartGoods>, totalPrice: Long): Observable<Int>


}